import request from '@/utils/request'

// 查询项目列表
export function projectList(query) {
    return request({
        url: '/biz/project/list',
        method: 'get',
        params: query
    })
}
// 查询我的项目列表
export function projectListMine(query) {
    return request({
        url: '/biz/project/list/mine',
        method: 'get',
        params: query
    })
}
// 获取项目详细信息
export function detailsproject(id) {
    return request({
        url: '/biz/project/' + id,
        method: 'get',
    })
}

// 删除项目
export function DelectprojectList(id) {
    return request({
        url: '/biz/project/' + id,
        method: 'DELETE',
    })
}

// 新增
export function ADDproject(data) {
    return request({
        url: '/biz/project',
        method: 'post',
        data: data
    })
}
// 修改
export function PUTproject(data) {
    return request({
        url: '/biz/project',
        method: 'PUT',
        data: data
    })
}

export function exportProject(query) {
  return request({
    url: '/biz/project/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/project/importTemplate',
    method: 'get'
  })
}
